package com.boot.start.config.result;

import lombok.Getter;

/**
 * @author 墨龙吟
 * @version 1.0.0
 * @ClassName StatusCode.java
 * @Email 2354713722@qq.com
 * @Description 状态码
 * @createTime 2020年05月18日 - 23:07
 */
@Getter
public enum StatusCode {

    /** 成功 */
    SUCCESS("001001200", "执行成功"),

    /** 失败 */
    FAIL("001001500", "执行失败"),

    /** 无权访问 */
    NOT_AUTH("001001300", "无权访问"),

    /** 未登录 */
    NOT_LOGIN("0010015001", "未登录"),

    /** 登录过期 */
    LOGIN_EXPIRED("0010015002", "登录过期")
    ;

    private String code;
    private String msg;

    StatusCode() {
    }

    StatusCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
